package com.deyuanyun.pic.ctrl.enumeration;

/**
 *  外检数据状态枚举
 *  @author axiao(xj08.dream@gmail.com)
 *  @date 2016-09-23
 *  @version 1.0
 *  Histroy: [修改人][时间][描述]
 */
public enum ExinspDataStatedEnum {
    NOT_IMPORT("未导入"),
    IMPORTED("已导入");

    private String label;

    private ExinspDataStatedEnum(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public static ExinspDataStatedEnum getInstance(String str) {
        ExinspDataStatedEnum[] statedEnas = ExinspDataStatedEnum.values();
        for (ExinspDataStatedEnum statedEna : statedEnas) {
            if(statedEna.name().equals(str)) {
                return statedEna;
            }
        }
        return NOT_IMPORT;
    }
}
